import * as React from 'react';
import '../styles.less';
import ParagraphCard from '../../../components/ParagraphCard'
import { insertHtmlAfterParagraph } from '../../../utils/WordUtil'
import * as ReactDom from 'react-dom';

export interface ConditionProps {
  res: any[]
}

export interface ConditionStates {

}

export default class Condition extends React.Component<ConditionProps, ConditionStates> {
  constructor(props, context) {
    super(props, context);
  }

  render() {
    const { content }: any = this.props.res
    return (
      <div className='condition'>
        <div className="title">为您找到<span> {content.count} </span>条数据</div>
        <div className="li-wrap">
          {
            content.data && content.data.length > 0 && content.data.map((item, index) => {
              return <div className="li" key={index}>{item.name}</div>
            })
          }
        </div>
      </div>
    );
  }

}
